﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Farmacia.BussinessLogic;
using Microsoft.Practices.Unity;

namespace Farmacia.net.Ventas.Cliente
{
    public partial class frmModificarCliente :BasePage<frmModificarCliente>// System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //txtBuscar.Text = "2131231423";

            var opc = Request.QueryString["acc"];

            if (opc != string.Empty)
            {
                if (opc == "editar")
                {
                    fvEditar.ChangeMode(FormViewMode.Edit);
                }
            }
            txtBuscar.Focus();
        }

        [Dependency]
        public iClienteBL ClienteBL { get; set; }

        protected void odsNuevoCliente_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = ClienteBL;
        }
    }
}